#include "imagetab.h"

ImageTab::ImageTab(QWidget *parent) :
    QWidget(parent)
{
    ui.setupUi(this);

    ui.labelPixmap->setText("Aucune image insérée.");
}


ImageTab::ImageTab(QWidget *parent, QImage * image) :
    QWidget(parent)
{
    ui.setupUi(this);

    ui.labelPixmap->setPixmap(QPixmap::fromImage(*image));
}

ImageTab::~ImageTab()
{

}
